package com.example.springbott.util;

import com.example.springbott.bean.silic.OrderChannelVo;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 1784549954@qq.com
 * @since 2022/11/19 15:11
 */
public class Count {
    public static final String MALL_SYSTEM_LONGITUDE = "market_mall_longitude";
    public static final String MALL_SYSTEM_LATITUDE = "market_mall_latitude";
    public static final String MALL_SYSTEM_ADDRESS = "market_mall_address";
    public static final String MALL_SYSTEM_QQ = "market_mall_qq";
    public static final String MALL_SYSTEM_PHONE = "market_mall_phone";
    public static final String MALL_SYSTEM_NAME = "market_mall_name";
    public static final Integer SUCCESS_CODE = 200;
    public static final Integer ERROR_CODE = 404;
    public static final String MALL_SYSTEM_EXPRESS_FREIGHT_MIN = "market_express_freight_min";
    public static final String MALL_SYSTEM_EXPRESS_FREIGHT_VALUE = "market_express_freight_value";
    public static final String MALL_SYSTEM_ORDER_UNPAID = "market_order_unpaid";
    public static final String MALL_SYSTEM_ORDER_COMMENT = "market_order_comment";
    public static final String MALL_SYSTEM_ORDER_UNCONFIRM = "market_order_unconfirm";
    public static final String MALL_SYSTEM_WX_INDEX_NEW = "market_wx_index_new";
    public static final String MALL_SYSTEM_WX_INDEX_TOPIC = "market_wx_index_topic";
    public static final String MALL_SYSTEM_WX_SHARE = "market_wx_share";
    public static final String MALL_SYSTEM_WX_INDEX_BRAND = "market_wx_index_brand";
    public static final String MALL_SYSTEM_WX_CATLOG_GOODS = "market_wx_catlog_goods";
    public static final String MALL_SYSTEM_WX_CATLOG_LIST = "market_wx_catlog_list";
    public static final String MALL_SYSTEM_WX_INDEX_HOT = "market_wx_index_hot";
    public static final String MALL_SYSTEM_WX_INDEX_FLOOR = "market_wx_index_floor";
    public static final String[] MALL_USER_RAWS = {"day", "users"};
    public static final String[] MALL_ORDER_RAWS = {"day", "orders", "customers", "amount", "pcr"};
    public static final String[] MALL_GOODS_RAWS = {"day", "orders", "products", "amount"};

    public static final Integer ROOT_CATEGORY_PID = 0;
    public static final Integer CATALOG_DEFAULT = 0;
    public static final String LEVELOFL1 = "L1";
    public static final String LEVELOFL2 = "L2";
    public static final Integer LIMIT_ZERO = 0;
    public static final Integer ZERO = 0;


    public static final List<OrderChannelVo> data = new ArrayList<>();

    static {
        data.add(new OrderChannelVo("ZTO", "中通"));
        data.add(new OrderChannelVo("YTO", "圆通"));
        data.add(new OrderChannelVo("EMS", "EMS"));
        data.add(new OrderChannelVo("YD", "韵达"));
        data.add(new OrderChannelVo("ZJS", "宅急送"));
        data.add(new OrderChannelVo("FEDEX", "FEDEX"));
    }

    public static final List<Short> ORDER_STATUS_LIST = new ArrayList<>();

    static {
        // ORDER_STATUS_LIST.add(Short.valueOf("101"));    //   未付款
        ORDER_STATUS_LIST.add(Short.valueOf("102"));    //  用户取消
        ORDER_STATUS_LIST.add(Short.valueOf("103"));    //  系统取消
        // ORDER_STATUS_LIST.add(Short.valueOf("201"));    //  已付款
        // ORDER_STATUS_LIST.add(Short.valueOf("202"));    //  申请退款
        ORDER_STATUS_LIST.add(Short.valueOf("203"));    //  已退款
        // ORDER_STATUS_LIST.add(Short.valueOf("301"));    // 已发货
        ORDER_STATUS_LIST.add(Short.valueOf("401"));    //用户收货
        ORDER_STATUS_LIST.add(Short.valueOf("402"));    //系统收货
        // ORDER_STATUS_LIST.add(Short.valueOf("403"));    //已申请售后
    }

    public static final String TYPE_ADMIN = "admin";
    public static final String TYPE_WX = "wx";
    public static final Integer UN_PAY = 101;
    public static final Integer PAYED = 201;
    public static final Integer PUT_GOODS = 301;
    public static final Integer PUT_GOOD_ED = 401;
    public static final Integer REFUND = 203;
    public static final Integer CANCEL = 102;


    // order状态码
    public static final short ORDER_STATUS_SHIPPED = 301;
    public static final short ORDER_STATUS_REFUNDABLE = 202;
    public static final short ORDER_STATUS_REFUNDED = 203;
    public static final short ORDER_STATUS_AFTERSALED = 403;
    public static final Integer ORDER_REFUND_ERROR = 602;
    public static final Integer ORDER_DELETE_ERROR = 623;
    public static final Integer REGISTER_CODE_ERROR = 703;
    public static final Integer REGISTER_MOBILE_REPEATED = 705;
    public static final String USER_LOGIN_ADDRESS = "http://localhost:8083/wx/auth/login";

    public static final String SMSCODE = "smsCode";

    // 注册模块状态码
    public static final Integer REGISTER_PHONE_FORMAT_ERROR = 700;
    public static final Integer REGISTER_CODE_FORMAT_ERROR = 701;
    public static final Integer REGISTER_PASSWORD_FORMAT_ERROR = 702;

    public static final Integer PLEASELOGIN = 501;
    public static final Integer NOLOGIN_ERROR = 501;

}
